package day9;

import java.util.ArrayList;

public class demo02 {
    public static void main(String[] args) {
        ArrayList<String> arrayList=new ArrayList();
//        arrayList.add(1);
        arrayList.add("dsfsf");
        arrayList.add("似懂非懂");
        arrayList.add("ki");
        arrayList.add("mi");
        System.out.println(arrayList);
        arrayList.add(0,"第一");
        System.out.println(arrayList);
        String n=arrayList.get(1);
        System.out.println(n);
        arrayList.remove(2);
        System.out.println(arrayList);
    }
}
